<?php
require_once('db.php');

$query = "SELECT * FROM `users`";

$result = mysql_query($query) or die(mysql_error());

$user = mysql_fetch_assoc($result);
print_r($user);
$user = mysql_fetch_assoc($result);
print_r($user);
$user = mysql_fetch_assoc($result);
print_r($user);
$user = mysql_fetch_assoc($result);
print_r($user);
echo "-----------------\n\n";

$user = mysql_fetch_assoc($result);// XXX
print_r($user);// XXX
